package com.javapatterns.factorymethod.query;

import java.sql.Connection;
import java.sql.Statement;
import java.sql.ResultSet;

public class OracleQueryRunner extends QueryRunner {
	public Connection createConnection() {
		// mockup
		return null;
	}

	protected String createSql() {
		return "SELECT * FROM customers";
	}

	protected ResultSet runSql(Connection conn, String sql) throws Exception {
		Statement stmt = conn.createStatement();
		return stmt.executeQuery(sql);
	}
}
